vulkan: Clip using scissors
authorBenjamin Otte <otte@redhat.com>
Fri, 19 May 2023 03:35:18 +0000 (05:35 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 4 Jun 2023 17:42:01 +0000 (19:42 +0200)
commitb791aa0301d2df088836c7d0f123c815ed46400e
treea666566270723254d95b923396d968fe428b3586
parent7fd94c1828fd6ff26d597f5916399ff27e61c98a
vulkan: Clip using scissors

If we have a rectangular clip without transforms, we can use
scissoring. This works particularly well because it allows intersecting
rounded rectangles with regular rectangles in all cases:
Use the scissor rect for the rectangle and the normal clipping code for
the rounded rectangle.
gsk/vulkan/gskvulkanclip.c
gsk/vulkan/gskvulkanclipprivate.h
gsk/vulkan/gskvulkanrenderpass.c